<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
   <table>
   	<tr>
   		<td>序号</td>
   		<td>区域名称</td>
   		<td>站点名称</td>
   		<td>站点等级</td>
   	</tr>
   <c:forEach items="${pi.list }" var="t">
   <tr>
   		<td>${t.id }</td>
   		<td>${t.ar.name }</td>
   		<td>${t.name }</td>
   		<td>${t.slevel }</td>
   	</tr>
   </c:forEach>
   <a href="srcon/list?pageNum=${pi.navigateFirstPage }">首页</a>
   <c:if test="${pi.hasPreviousPage }">
   <a href="srcon/list?pageNum=${pi.prePage}">上一页</a>
   </c:if>
   <c:forEach items="${pi.navigatepageNums }" var="np">
   <a href="srcon/list?pageNum=${np }">${np }</a>
   </c:forEach>
   
   <c:if test="${pi.hasNextPage }">
   <a href="srcon/list?pageNum=${pi.nextPage }">下一页</a>
   </c:if>
   <a href="srcon/list?pageNum=${pi.navigateLastPage }">尾页</a>
   </table>
  </body>
</html>
